<%@page import="com.usb.*"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="author" content="20201212杨铖宇">
<title>Usb</title>
<!-- 引入css、js -->
<link rel="stylesheet" href="css/log.css">
<script src="js/login.js"></script>
<script src="js/jquery.min.js"></script>
<script src='js/autosize.js'></script>
</head>
<body>
	<!--背景变换-->
	<div class="slideshow">
		<div class="slideshow-image"
			style="background-image: url('img/wallhaven1.png')"></div>
		<div class="slideshow-image"
			style="background-image: url('img/wallhaven3.png')"></div>
		<div class="slideshow-image"
			style="background-image: url('img/wallhaven4.png')"></div>
		<div class="slideshow-image"
			style="background-image: url('img/wallhaven5.png')"></div>
	</div>
	<!--导航栏-->
	<ul>
		<li><a class="active" href="https://ycy20201212.github.io/">Home</a></li>
		<li><a href="https://www.sohu.com/">News</a></li>
		<li><a href="https://www.cnblogs.com/20201212ycy/">Contact</a></li>
		<li><a href="Log.jsp">日志审计</a></li>
		<li><a href="Jacap.jsp">流量审计</a></li>
		<li style="float: right"><a href="About.html">About</a></li>
	</ul>
	<!--主体-->
	<div class="container switch">
		<form action="" class="form" align="center">
			<table id="pageListTable">
				<thead class="fixed_header">
					<tr>
						<th>USB</th>
						<th>生产厂商ID (VID)</th>
						<th>产品ID (PID)</th>
						<th>序列号 SN</th>
					</tr>
				</thead>
				<tbody id="pageListTableBody">
					<%
					ArrayList<Usbs> list = (ArrayList<Usbs>)request.getAttribute("usblist");
						      	if(list == null || list.toString().equals("[]")){%>
						      		<h3>暂无USB数据</h3>
						      	<%}
						      	else{
									for (Usbs l : list) {
					%>
					<tr>
						<td><%=l.getUsb()%></td>
						<td><%=l.getVid()%></td>
						<td><%=l.getPid()%></td>
						<td><%=l.getSn()%></td>					
					</tr>
					<%
					}}
					%>
				</tbody>
			</table>
			<p>
				<a href="UsbGet">开始审计</a>
			</p>
	</div>
	</form>
	</div>
	<script>
		autosize(document.querySelectorAll('textarea'));
	</script>
</body>
</html>